package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DestinationRepository extends MongoRepository<Destination, String> {
    List<Destination> findByIdIn(List<String> list);
    List<Destination> findByParentName(String country);
    List<Destination> findByParentId(String id);
    List<Destination> findByParentId(String id, Pageable pageable);
}
